{include 'header.tpl'}
<ol class="breadcrumb">
    <li><a href="/adminmall/visit/list">访问统计列表</a></li>
</ol>
<form method="get" action="/adminmall/visit/list" class="form-inline">
    <table>
        <tr>


            <td>
                <label for="form-w" class="control-label">时间：</label>
                <input type="text" class="date-picker" id="begin_date" name="begin_date" value="{$start_time}" style="width: 85px;"/> 至 <input type="text" class="date-picker" id="end_date" name="end_date" value="{$end_time}" style="width: 85px;"/>
            </td>

            <td>
                <button type="submit" class="btn btn-primary">查找</button>
                <a href="/adminmall/visit/list" class="btn btn-danger">清空条件</a>
                {*<button type="button" onclick="dao()" class="btn btn-primary">导出</button>*}
            </td>
        </tr>
    </table>
</form>
<div class="clearfix" style="height:30px;"></div>
<table class="table" style="table-layout: fixed;WORD-BREAK: break-all; WORD-WRAP: break-word">
    <tr>
        <td>日期</td>
        <td>首页的人数</td>
        <td>订单页面的人数</td>
        <td>不在配送范围的人数</td>
        <td>支付页面生成订单的人数</td>
        <td>地址列表页人数</td>
        <td>添加地址人数</td>
        <td>跳转百度地图人数</td>
        <td>支付成功的订单数</td>
    </tr>
    <tr style="color: red; font-size: 120%">
        <td>汇总</td>
        <td>{intval($total[1])}</td>
        <td>{intval($total[2])}</td>
        <td>{intval($total[3])}</td>
        <td>{intval($total[4])}</td>
        <td>{intval($total[5])}</td>
        <td>{intval($total[6])}</td>
        <td>{intval($total[7])}</td>
        <td>{intval($total['orders_count'])}</td>
    </tr>
    {foreach $data as $k => $v}
       <tr>
           <td>{$k}</td>
           <td><a href="/visit/log?type=1&date={$k}">{intval($v[1])}</a></td>
           <td><a href="/visit/log?type=2&date={$k}">{intval($v[2])}</a></td>
           <td><a href="/visit/log?type=3&date={$k}">{intval($v[3])}</a></td>
           <td><a href="/visit/log?type=4&date={$k}">{intval($v[4])}</a></td>
           <td><a href="/visit/log?type=5&date={$k}">{intval($v[5])}</a></td>
           <td><a href="/visit/log?type=6&date={$k}">{intval($v[6])}</a></td>
           <td><a href="/visit/log?type=7&date={$k}">{intval($v[7])}</a></td>
           <td>{intval($v['orders_count'])}</td>
       </tr>
       {/foreach}
</table>
{include "pager.tpl"}
<script type="text/javascript">
    $(function () {
        create_date_picker();
    });

    function dao(){
//        var nickname = $('#nickname').val();
//        var mobile = $('#mobile').val();
//        var begin_date = $('#begin_date').val();
        var end_date = $('#end_date').val();
//        var intentionE1=$("#intention option:selected");
//        var intention = intentionE1.val();
//        alert(intention);
//        alert(nickname);
//        alert(mobile);
//        alert(end_date);

//        location.href = "/admin/Order/excelDao?begin_date=" + begin_date + "&end_date=" + end_date+ "&nickname=" + nickname+ "&mobile=" + mobile + "&intention=" + intention;

    }
</script>
{include 'footer.tpl'}